<template>
  <div class="content flex">
    <div class="default">
      <div class="uni-page-head-bd">用户中心</div>
    </div>
    <div class="logo">
      <img
        src="../assets/logo.png"
        alt=""
      >
    </div>
    <div class="text">领取18.8枚VPC成功,8个工作日到账</div>
    <div class="btn-row">
      <div
        class="btn"
        @click="change"
      >验证已通过</div>
      <div
        class="btn"
        @click="change"
      >点击右上角分享给更多的好友</div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      value: '',
      mobile: ''
    }
  },
  mounted: function () {
    this.mobile = this.$route.query.mobile
  },
  methods: {
    change () {
      this.$router.push({
        // 核心语句
        path: '/', // 跳转的路径
        query: {
          // 路由传参时push和query搭配使用 ，作用时传递参数
        }
      })
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.content {
  background: #fff;
  width: auto;
  height: auto;
  position: absolute;
  left: 10px;
  top: 10px;
  right: 10px;
  bottom: 10px;
  flex-direction: column;
  .default {
    position: absolute;
    left: -10px;
    top: -10px;
    right: -10px;
    background: rgb(15, 174, 255);
    .uni-page-head-bd {
      height: 26px;
      text-align: center;
      color: #fff;
      padding: 7px 3px;
    }
  }
  .logo {
    margin-top: 30%;
  }
  .text {
    font-size: 14px;
    text-align: center;
  }
  .btn-row {
    margin-top: 30%;
    .btn {
      height: 44px;
      width: 80%;
      cursor: pointer;
      margin-left: auto;
      margin-right: auto;
      font-size: 14px;
      background: rgb(15, 174, 255);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 5px;
      margin-bottom: 10px;
    }
  }
}
</style>
